package com.lightman.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lightman.common.utils.PageUtils;
import com.lightman.gulimall.product.entity.SpuInfoEntity;
import com.lightman.gulimall.product.vo.SpuSaveVo;

import java.util.Map;

/**
 * spu信息
 *
 * @author lightman
 * @email 1355208467@qq.com
 * @date 2020-12-23 07:17:14
 */
public interface SpuInfoService extends IService<SpuInfoEntity> {

    PageUtils queryPage(Map<String, Object> params);

    // 新增商品
    void saveSpuInfo(SpuSaveVo vo);

    // 保存spu 基本信息
    void saveBaseSpuInfo(SpuInfoEntity spuInfoEntity);

    PageUtils queryPageByCondition(Map<String, Object> params);

    // 商品上架
    void up(Long spuId);
}

